package org.chouy.task;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @program: Yang
 * @description: Springboot 定时任务测试
 * @author: Zhouy
 * @create: 2019-01-16 16:22
 **/

@EnableScheduling
@Component
public class ScheduledTasks {

    /*@Scheduled(cron = "0/5 * * * * ?")*/
    public void sayTest(){
        System.out.println("测试的啊");
    }
}
